package uvt.gui.mainframe.subpanel;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import javax.swing.JPanel;

import uvt.gui.mainframe.object.command.Command;
import uvt.map.JMapViewer;

public abstract class PanelAddParent extends JPanel implements ActionListener {
	
	protected static JMapViewer map;
	
	public abstract void cleanPanel();

	public static void setMapViewer(JMapViewer map) {
		PanelAddParent.map = map;
	}
	
	public void actionPerformed(ActionEvent ac) {
		((Command)ac.getSource()).execute();
	}
	
}
